in VS 2005, The configurationsettings class is often used to read the Program Configuration File Information of the application, to obtain the database connection string. However, the following error often occurs: warning "system. configuration.
When vs 2003 is converted to 2005, the project displays the class referenced by the obsolete configuration file in 2003, as shown below:System. configuration. configurationsettings. Expired ettings expired warning: "system. configuration.
. NET 2.0 vs2005
When the configurationsettings class is used to read the applicationProgramThe configuration file information is warned:
Warning
1
"System. configuration. configurationsettings. deleettings" is out of date: "This method
Is
Difficulty: 3Prerequisites: You have some knowledge about configuring database connections in the app. config and web. config files.
ConclusionVs2003: String connstr = system. configuration. configurationsettings. etettings ["sqlconnectionstring"];
In. net1.1, we use string strconnection = system. configuration. configurationsettings. deleettings ["connstring"];Prompt in. net2.0 vs2005
Warning 1 "system. configuration. configurationsettings. receivettings" is out of date: "This method is
I spent a whole night writing this.Code, A little messy. Sorry.
The first is the abstraction of encryption and decryption, because. net implements 3DES very well and does not support string, so we must encapsulate it as a 3DES Encryption Class
Use the deleettings property of the ConfigurationSettings object to retrieve ASP. NET configuration information.ASP. NET allows developers to access configuration settings from applications by directly publishing configuration settings (in the form
C # Read and Write Data in APP. config
[Turn]: http://gb2013.blog.163.com/blog/static/21735301201021253713453/
Read statement:String STR = configurationmanager. receivettings ["demokey"];
Write statement:
Configuration CFA =
Read and Write the configuration file app. configThe configuration file is provided in. Net, which allows us to Process configuration information in a very good way. This configuration is in XML format. In addition,. NET provides some functions to
1. configuration file Overview:The application configuration file is a standard XML file, and the XML tag and attribute are case sensitive. It can be changed as needed. developers can use the configuration file to change the settings without
1. configuration file Overview:The application configuration file is a standard XML file, and the XML tag and attribute are case sensitive. It can be changed as needed. developers can use the configuration file to change the settings without
Custom ApplicationProgramConfiguration file (App. config)1. configuration file Overview:The application configuration file is a standard XML file, and the XML tag and attribute are case sensitive. It can be changed as needed. developers can use the
Structure
Abstract:This article introduces in detail the structure framework of duwamish online e-bookstore routine, and analyzes in detail some features and design patterns of this structure.-------------------------------------------------------
1.Configuration File Overview:
The application configuration file is a standard XML file, and the XML tag and attribute are case sensitive. It can be changed as needed. developers can use the configuration file to change the settings without
Configuration file (App. config file), configuration file app. config
1. configuration file Overview:The application configuration file is a standard XML file, and the XML tag and attribute are case sensitive. It can be changed as needed. developers
Note: To regularly back up the database on the server and compress it to the specified directory, you can easily download it locally and write this program. With the windows task plan, you can back up the database regularly.
The Program must
/*
*
* Anti-leech ihttphandler
*
*
* Added the selection of file keywords (I .e., filtering only some keywords or some keywords in the file name)
* Set the following values in the section of Web. config:
* String ewebapp_nolink: if the file name
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.